import request from '@/utils/request'

// 员工列表
export function getUserList(data) {
  return request({
    url: '/api/user_list',
    method: 'POST',
    data,
  })
}

// 员工add
export function addUser(data) {
  return request({
    url: '/api/user_add',
    method: 'POST',
    data,
  })
}

// 员工子查询
export function userListItem(data) {
  return request({
    url: '/api/user_list_item',
    method: 'POST',
    data,
  })
}

// 员工添加部门
export function userDeptAdd(data) {
  return request({
    url: '/api/user_dept_add',
    method: 'POST',
    data,
  })
}

// 员工删除部门
export function userDel(data) {
  return request({
    url: '/api/user_del',
    method: 'POST',
    data,
  })
}

// 员工详情
export function userDetail(data) {
  return request({
    url: '/api/user_detail',
    method: 'POST',
    data,
  })
}

// 员工客服
export function setService(data) {
  return request({
    url: '/api/set_service',
    method: 'POST',
    data,
  })
}

// 员工客服取消
export function cancalService(data) {
  return request({
    url: '/api/cancal_service',
    method: 'POST',
    data,
  })
}

// 设置员工在职/离职
export function userSet(data) {
  return request({
    url: '/api/user_set_job',
    method: 'POST',
    data,
  })
}

export function getUserTel(data) {
  return request({
    url: '/api/get_user_tel',
    method: 'POST',
    data,
  })
}
